0 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H>================<CTRL-M>DOUBLE-TAKE DEMO<CTRL-M>MARK S. SIMONSEN<CTRL-M>(C) 1983<CTRL-M>BEAGLE BROS INC.<CTRL-M>================<CTRL-M>
1 PRINT CHR$(12); CHR$(21)
2 PRINT CHR$(4)"NOMONICO"
3 IF PEEK(104) <12 THEN POKE 104,12: POKE 3072,0: PRINT CHR$(4)"RUN DEMO.DOUBLE-TAKE"
4 GOTO 7
5 FOR I = 1 TO FI: PRINT LINE$;: NEXT : PRINT SEG$;: POKE 2039,174: RETURN
6 FOR I = 1 TO FI: CALL 768: VTAB 1: HTAB 1: PRINT LINE$;: NEXT : RETURN
7 SPEED= 255: TEXT : NORMAL : HOME :PAUSE = 1000:SPD = 155:S2 = 240
39 VTAB 1: HTAB 1: PRINT "A hundred times a day, you type LIST": PRINT "and your Applesoft Listings dutifully": PRINT "appear on your monitor..."
40 GOSUB 103: SPEED= S2
41 VTAB 14: FOR I = 1 TO 10: HTAB 3: PRINT L$(I): NEXT
42 GOSUB 103: SPEED= SPD
43 VTAB 3: HTAB 27: PRINT "then promptly": PRINT "scroll off of the screen into Hyper-": PRINT "Space.": GOSUB 115
44 GOSUB 103: SPEED= S2
45 VTAB 23: FOR I = 10 TO 28: PRINT L$(I): NEXT : PRINT L$(29);
46 GOSUB 114: SPEED= 255:VT = 11: GOSUB 106
47 GOSUB 108
48 SPEED= SPD: POKE 35,9
49 PRINT "If the program line you are looking for": PRINT "goes by, you must LIST AGAIN to read it.";: PRINT "There's a better way.": PRINT
50 INVERSE : PRINT "2-WAY SCROLLING:";: NORMAL : PRINT " Now you can list your": PRINT "programs (all or part) with the added": PRINT "ability to CHANGE LIST-DIRECTION using": PRINT "the Apple Arrow Keys. Your monitor"
51 PRINT "becomes a 'Search Window' to be moved": PRINT "UP AND DOWN through a listing at will."
52 GOSUB 103: SPEED= S2
53 GOSUB 115: FOR I = 19 TO 1 STEP -1: CALL 768: VTAB 14: PRINT L$(I): NEXT
54 GOSUB 103: VTAB 23: PRINT : FOR I = 11 TO 28: PRINT L$(I): NEXT : PRINT L$(29);: HTAB 1: GOSUB 103: FOR I = 19 TO 1 STEP -1: CALL 768: VTAB 14: PRINT L$(I): NEXT
55 GOSUB 114: SPEED= 255:VT = 11: GOSUB 106
56 TEXT : POKE -16299,0
57 HOME : GOSUB 116: POKE -16300,0
58 GOSUB 114: POKE 35,7: SPEED= SPD
59 VTAB 1: HTAB 1: PRINT "If you're tired of looking at regular": PRINT "Applesoft Listings, DOUBLE-TAKE provides";: PRINT "an optional way to list your programs.": PRINT
60 INVERSE : PRINT "IMPROVED LIST-FORMAT:";: NORMAL : PRINT " Each program": PRINT "statement is listed on a new line for": PRINT "easy tracing of program flow, and FAST": PRINT "de-bugging. Commands are properly spaced";
61 PRINT "(one space between words, not two) and": PRINT "much easier to read."
62 GOSUB 103
63 SPEED= S2
64 GOSUB 115: VTAB 14: FOR I = 1 TO 38: PRINT L2$(I): NEXT : PRINT L2$(39);: HTAB 1
67 SPEED= S2: GOSUB 115: GOSUB 103: FOR I = 29 TO 1 STEP -1: CALL 768: VTAB 14: PRINT L2$(I): NEXT
68 GOSUB 103: FOR I = 10 TO 38: VTAB 23: PRINT L2$(I): NEXT : PRINT L2$(39);: HTAB 1: GOSUB 103: FOR I = 29 TO 1 STEP -1: CALL 768: VTAB 14: PRINT L2$(I): NEXT
69 GOSUB 114: SPEED= 255:VT = 11: GOSUB 106
70 GOSUB 109
71 SPEED= SPD: PRINT "High-speed PRINTER LISTINGS in Improved": PRINT "Format or Regular Format are a snap": PRINT "(in any column width)."
72 SPEED= 255:VT = 11: GOSUB 106
73 TEXT : POKE -16299,0
74 HOME : GOSUB 116: POKE -16300,0
75 SPEED= SPD: VTAB 1: HTAB 1: INVERSE : PRINT "MONITOR-LISTINGS";: NORMAL : PRINT " feature 2-Way Scroll": PRINT "too. Dis-assembled Machine Code is": PRINT "scanned quickly in BOTH DIRECTIONS."
76 GOSUB 115: GOSUB 103: VTAB 14: SPEED= S2: FOR I = 1 TO 26: PRINT L3$(I): NEXT : PRINT L3$(27);: HTAB 1: GOSUB 103: FOR I = 17 TO 1 STEP -1: CALL 768: VTAB 14: PRINT L3$(I): NEXT
79 SPEED= S2: GOSUB 115: POKE 32,1: POKE 33,38: GOSUB 111: GOSUB 103: FOR I = 1 TO 22: PRINT L4$(I);: NEXT : HTAB 1: GOSUB 103: FOR I = 12 TO 1 STEP -1: CALL 768: VTAB 14: PRINT L4$(I);: NEXT
80 GOSUB 114: SPEED= 255:VT = 11: GOSUB 106
81 TEXT : POKE -16299,0
82 HOME : GOSUB 116: POKE -16300,0
83 VTAB 1: HTAB 1
84 SPEED= SPD: INVERSE : PRINT "CATALOGS";: NORMAL : PRINT " feature fast 2-Way Scroll too,": PRINT "speeding up location of file names. Hit": PRINT "the Left Arrow Key to SCROLL BACKWARD,"
85 PRINT "any key to continue forward, or ctrl-C": PRINT "for a clean break."
86 GOSUB 103: GOSUB 115: VTAB 14: SPEED= S2: PRINT "DISK VOLUME 254 98 FREE SECTORS": PRINT : FOR I = 1 TO 7: PRINT L5$(I): NEXT : PRINT L5$(8);: GOSUB 103
87 POKE 34,14: VTAB 23: HTAB 1: FOR I = 8 TO 15: PRINT L5$(I): NEXT : PRINT L5$(16);: GOSUB 103: GOSUB 103
88 HTAB 1: FOR I = 7 TO 1 STEP -1: CALL 768: VTAB 15: PRINT L5$(I): NEXT
89 GOSUB 114: SPEED= 255:VT = 11: GOSUB 106
90 TEXT : GOSUB 112: SPEED= SPD
91 VTAB 1: INVERSE : PRINT "BONUS UTILITIES:";: NORMAL : PRINT " Any or all of the": PRINT "following enhancements may be hidden in": PRINT "memory, unseen until accessed--": PRINT : PRINT
92 PRINT "CROSS REFERENCE: Displays existing": PRINT "variables, strings, arrays & the line": PRINT "numbers on which each occurs--": PRINT
116 IF PEEK( -1101) < >6 THEN VTAB 12: PRINT "________________________________________": VTAB 24: PRINT "_______________________________________";: POKE 2039,223: RETURN
117 VTAB 12: PRINT "________________________________________": INVERSE : FOR I = 13 TO 23: VTAB I: HTAB 1: PRINT " ";: HTAB 40: PRINT " ";: NEXT : VTAB 24: PRINT " ";: NORMAL : PRINT "______________________________________";: POKE 2039,32: RETURN
118 FOR I = 864 TO 872: READ V: POKE I,V: NEXT : RETURN
119 DATA 201,224,144,2,233,32,76,240,253
120 FOR I = 820 TO 860: READ V: POKE I,V: NEXT : RETURN
121 DATA 166,34,138,32,36,252,160,0,165,41,41,3,9,4,133,41,177,40,72,165,41,41,3,9,8,133,41,104,145,40,200,196,33,144,229,232,228,35,144,218,96
122 FOR I = 768 TO 768 +50: READ V: POKE I,V: NEXT : RETURN
123 DATA 165,35,56,233,1,72,32,36,252,165,40,133,42,165,41,133,43,164,33,136,104,56,233,1,48,17,197,34,144,13,72,32,36,252,177,40,145,42,136,16,249,48,222,160,0,32,158,252,76,34,252
124 FOR I = 1 TO 29: READ L$(I): NEXT : RETURN
125 DATA "10 REM DRAW PICTURE"
126 DATA "20 HGR : HCOLOR= 3"
127 DATA "30 FOR I = 80 TO 160: HPLOT 0,I TO"
128 DATA " 279,I: NEXT"
129 DATA "40 HCOLOR= 0:CX = 140:CY = 50"
130 DATA "50 FOR I = 1 TO 11: READ X,Y: HPLOT"
131 DATA " CX,CY TO X,Y: NEXT"
132 DATA "60 J = J + 1:K = J ^ 2.5"
133 DATA "70 IF 80 + K > 160 THEN 90"
134 DATA "80 HPLOT 0,80 + K TO 279,80 + K:"
135 DATA " GOTO 60"
136 DATA "90 DATA 0,90,0,100,0,120,0,160,7"
137 DATA " 0,160,140,160,210,160,279,16"
138 DATA " 0,279,120,279,100,279,90"
139 DATA "100 HCOLOR= 3"
140 DATA "110 FOR I = 0 TO 30: HPLOT 0,I TO"
141 DATA " 279,I: NEXT"
142 DATA "120 HCOLOR= 0"
143 DATA "130 FOR I = 1 TO 13: READ X,Y:HPLOT"
144 DATA " CX,CY TO X,Y: NEXT"
145 DATA "140 HPLOT 0,29 TO 279,29: HPLOT"
146 DATA " 0,25 TO 279,25: HPLOT 0,15 TO"
147 DATA " 279,15"
148 DATA "150 DATA 0,25,0,15,0,5,30,0,70,0"
149 DATA " ,105,0,140,0,175,0,210,0,250"
150 DATA " ,0,279,5,279,15,279,25"
151 DATA "160 HCOLOR= 3: HPLOT CX - 3,CY TO"
152 DATA " CX + 3,CY: HPLOT CX,CY - 3 TO"
153 DATA " CX,CY + 3"
154 FOR I = 1 TO 39: READ L2$(I): NEXT : RETURN
155 DATA "10 REM DRAW PICTURE"
156 DATA "20 HGR"
157 DATA " : HCOLOR= 3"
158 DATA "30 FOR I = 80 TO 160"
159 DATA " : HPLOT 0,I TO 279,I"
160 DATA " : NEXT"
161 DATA "40 HCOLOR= 0"
162 DATA " : CX = 140"
163 DATA " : CY = 50"
164 DATA "50 FOR I = 1 TO 11"
165 DATA " : READ X,Y"
166 DATA " : HPLOT CX,CY TO X,Y"
167 DATA " : NEXT"
168 DATA "60 J = J + 1"
169 DATA " : K = J ^ 2.5"
170 DATA "70 IF 80 + K > 160 THEN 90"
171 DATA "80 HPLOT 0,80 + K TO 279,80 + K"
172 DATA " : GOTO 60"
173 DATA "90 DATA 0,90,0,100,0,120,0,160,70"
174 DATA " ,160,140,160,210,160,279,160"
175 DATA " ,279,120,279,100,279,90"
176 DATA "100 HCOLOR= 3"
177 DATA "110 FOR I = 0 TO 30"
178 DATA " : HPLOT 0,I TO 279,I"
179 DATA " : NEXT"
180 DATA "120 HCOLOR= 0"
181 DATA "130 FOR I = 1 TO 13"
182 DATA " : READ X,Y"
183 DATA " : HPLOT CX,CY TO X,Y"
184 DATA " : NEXT"
185 DATA "140 HPLOT 0,29 TO 279,29"
186 DATA " : HPLOT 0,25 TO 279,25"
187 DATA " : HPLOT 0,15 TO 279,15"
188 DATA "150 DATA 0,25,0,15,0,5,30,0,70,0,1"
189 DATA " 05,0,140,0,175,0,210,0,250,0"
190 DATA " ,279,5,279,15,279,25"
191 DATA "160 HCOLOR= 3"
192 DATA " : HPLOT CX - 3,CY TO CX + 3,CY"
193 DATA " : HPLOT CX,CY - 3 TO CX,CY + 3"
194 FOR I = 1 TO 27: READ L3$(I): NEXT : RETURN
195 DATA "0300- A5 23 LDA $23"
196 DATA "0302- 38 SEC"
197 DATA "0303- E9 01 SBC #$01"
198 DATA "0305- 48 PHA"
199 DATA "0306- 20 24 FC JSR $FC24"
200 DATA "0309- A5 28 LDA $28"
201 DATA "030B- 85 2A STA $2A"
202 DATA "030D- A5 29 LDA $29"
203 DATA "030F- 85 2B STA $2B"
204 DATA "0311- A4 21 LDY $21"
205 DATA "0313- 88 DEY"
206 DATA "0314- 68 PLA"
207 DATA "0315- 38 SEC"
208 DATA "0316- E9 01 SBC #$01"
209 DATA "0318- 30 11 BMI $032B"
210 DATA "031A- C5 22 CMP $22"
211 DATA "031C- 90 0D BCC $032B"
212 DATA "031E- 48 PHA"
213 DATA "031F- 20 24 FC JSR $FC24"
214 DATA "0322- B1 28 LDA ($28),Y"
215 DATA "0324- 91 2A STA ($2A),Y"
216 DATA "0326- 88 DEY"
217 DATA "0327- 10 F9 BPL $0322"
218 DATA "0329- 30 DE BMI $0309"
219 DATA "032B- A0 00 LDY #$00"
220 DATA "032D- 20 9E FC JSR $FC9E"
221 DATA "0330- 4C 22 FC JMP $FC22"
222 FOR I = 1 TO 22: READ L4$(I): NEXT : RETURN
223 DATA "1000- 4E 6F 77 20 79 6F 75 20 Now you "
224 DATA "1008- 63 61 6E 20 6C 69 73 74 can list"
225 DATA "1010- 20 79 6F 75 72 22 3A BA your'::"
226 DATA "1018- 22 70 72 6F 67 72 61 6D 'program"
227 DATA "1020- 73 20 28 61 6C 6C 20 6F s (all o"
228 DATA "1028- 72 20 70 61 72 74 29 20 r part) "
229 DATA "1030- 77 69 74 68 20 74 68 65 with the"
230 DATA "1038- 20 61 64 64 65 64 22 3A added':"
231 DATA "1040- BA 22 61 62 69 6C 69 74 :'abilit"
232 DATA "1048- 79 20 74 6F 20 43 48 41 y to CHA"
233 DATA "1050- 4E 47 45 20 4C 49 53 54 NGE LIST"
234 DATA "1058- 2D 44 49 52 45 43 54 49 -DIRECTI"
235 DATA "1060- 4F 4E 20 75 73 69 6E 67 ON using"
236 DATA "1068- 22 3A BA 22 74 68 65 20 '::'the "
237 DATA "1070- 41 70 70 6C 65 20 41 72 Apple Ar"
238 DATA "1078- 72 6F 77 20 4B 65 79 73 row Keys"
239 DATA "1080- 2E 20 59 6F 75 72 20 6D . Your m"
240 DATA "1088- 6F 6E 69 74 6F 72 22 00 onitor'."
241 DATA "1090- 0F 11 DD 01 BA 22 62 65 ..].:'be"
242 DATA "1098- 63 6F 6D 65 73 20 61 20 comes a "
243 DATA "10A0- 27 53 65 61 72 63 68 20 'Search "
244 DATA "10A8- 57 69 6E 64 6F 77 27 20 Window'"
245 FOR I = 1 TO 16: READ L5$(I): NEXT : RETURN
246 DATA "*A 002 HELLO"
247 DATA "*A 052 ALPHA PLOT"
248 DATA " A 024 APPLE MECHANIC"
249 DATA " A 008 BEAGLE BAG"
250 DATA "*A 062 DOS BOSS"
251 DATA " B 038 DOUBLE-TAKE"
252 DATA " B 010 FLEX TEXT"
253 DATA " B 034 FRAME-UP"
254 DATA " B 033 PRONTO-DOS"
255 DATA "*A 004 TIP DISK#1"
256 DATA " A 018 TYPEFACES"
257 DATA " A 055 UTILITY CITY"
258 DATA " T 003 SNIFFUM"
259 DATA " B 005 MEADOW MUFFIN"
260 DATA " I 010 CITY DUMP"
261 DATA " B 000 HAIR GROW"
262 REM <CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H><CTRL-H> <CTRL-M>================<CTRL-M>DOUBLE-TAKE DEMO<CTRL-M>MARK S. SIMONSEN<CTRL-M>(C) 1983<CTRL-M>BEAGLE BROS INC.<CTRL-M>================<CTRL-M>